package com.hqq.create.builder;

import java.util.List;

/**
 * BuilderTest
 * Created by heqianqian on 2017/3/10.
 */
public class BuilderTest {
    public static void main(String[] args) {
        Builder builder = new Builder();
        builder.produceMail(10);
        List<Sender> senderList = builder.getSenderList();
        for (Sender s:senderList){
            s.send();
        }
    }
}
